<form action="" id="myform">
<div id="inline1">
	<h2><span>联系人信息</span></h2>
	<table>
		<tr>
			<th colspan="7">联系人：</th>
		</tr>
		<tr>
			<td class="name" width="80">对应客户：</td>
			<td>&nbsp;</td>
			<td width="170" colspan="5" id="customer_name">
			<?=$find_contacter->customer_name?></td>
         </tr>
         <tr>
			<td class="name" width="80">姓名：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->name?></td>
            <td>&nbsp;</td>
            <?php
            $gender = '女';
            if ($find_contacter->sex) {
                $gender = '男';
            }
            ?>
            <td class="name" width="80">性别：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$gender?></td>
		</tr>
		<tr>
			<td class="name" width="80">负责业务：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->business?></td>
			<td>&nbsp;</td>
			<!-- <td class="name" width="80">分类：</td>
			<td>&nbsp;</td>
			<td colspan="5" width="170"></td> -->
		</tr>
		<tr>
			<th colspan="7">现任单位：</th>
		</tr>
		<tr>
			<td class="name" width="80">称谓：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->appellation?></td>
			<td>&nbsp;</td>
			<td class="name" width="80">类型：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->type?></td>
		</tr>
		<tr>
			<td class="name" width="80">部门：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->department?></td>
			<td>&nbsp;</td>
			<td class="name" width="80">职务：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->post?></td>
		</tr>
        <tr>
			<td class="name" width="80">时间：</td>
			<td>&nbsp;</td>
			<td width="170"></td>
			<td>&nbsp;</td>
			<td class="name" width="80">所属单位：</td>
			<td>&nbsp;</td>
			<td width="170"></td>
		</tr>
		<?php foreach($old_units as $old_unit):?>
		<tr>
			  <th colspan="7">历任单位：</th>
				</tr>
				<tr>
					<td class="name" width="80">称谓：</td>
					<td>&nbsp;</td>
					<td width="170"><?= $old_unit->appellation?></td>
					<td>&nbsp;</td>
					<td class="name" width="80">类型：</td>
					<td>&nbsp;</td>
					<td width="170"><?= $old_unit->type?></td>
				</tr>
				<tr>
					<td class="name" width="80">部门：</td>
					<td>&nbsp;</td>
					<td width="170"><?= $old_unit->department?></td>
					<td>&nbsp;</td>
					<td class="name" width="80">职务：</td>
					<td>&nbsp;</td>
					<td width="170"><?= $old_unit->post?></td>
				</tr>
				<tr>
                    <td class="name" width="80">时间：</td>
                    <?php 
                    $datatime = strtotime($old_unit->create_time);
                    $create_time = date( "Y-m-d",$datatime);
                    ?>
                    <td>&nbsp;</td>
                    <td width="170"><?= $create_time?></td>
                    <td>&nbsp;</td>
                    <td class="name" width="80">所属单位：</td>
                    <td>&nbsp;</td>
                    <td width="170"><?=$old_unit->old_unit?></td>
                </tr>
			<?php endforeach;?>
		<tr>
			<th colspan="7">联系：</th>
		</tr>
		<tr>
			<td class="name" width="80">工作电话：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->work_tel?></td>
			<td>&nbsp;</td>
			<td class="name" width="80">传真：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->fax?></td>
		</tr>
		<tr>
			<td class="name" width="80">移动电话：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->mobile_phone?></td>
			<td>&nbsp;</td>
			<td class="name" width="80">家庭电话：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->home_tel?></td>
		</tr>
		<tr>
			<td class="name" width="80">邮件地址：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->email?></td>
			<td>&nbsp;</td>
			<td class="name" width="80">QQ：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->qq?></td>
		</tr>
		<tr>
			<td class="name" width="80">邮编：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->postcode?></td>
			<td>&nbsp;</td>
			<td class="name" width="80">家庭地址：</td>
			<td>&nbsp;</td>
			<td width="170"><?=$find_contacter->home_address?></td>
		</tr>
        <tr>
			<td class="name" width="80">兴趣：</td>
			<td>&nbsp;</td>
			<td width="170" colspan="5" id="customer_name">
			 <?=$find_contacter->interest?>
			</td>
         </tr>
         <tr>
			<td class="name" width="80">爱好：</td>
			<td>&nbsp;</td>
			<td width="170" colspan="5" id="customer_name">
			<?=$find_contacter->hobby?>
			</td>
         </tr>
         <tr>
            <td class="gj_name">备注：</td>
            <td>&nbsp;</td>
            <td height="80" colspan="5" valign="top">
            <?= $find_contacter->remark?>
            </td>
        </tr>
        <tr class="sub">
            <td colspan="7"><input type="button" id="c_c_v_e" value="编辑" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" id="c_c_v_d" value="删除" /></td>
        </tr>
        <tr><td colspan="5">&nbsp;</td></tr>
	</table>
</div>
  </form>